
package jing.typedef;

public class ReturnCode {
    public static final int OK = 0;

    // generic
    public static final int E_INVALID_PARAM = 1;
    public static final int E_EXCEPTION = 2;
    public static final int E_STARTED = 3;
    public static final int E_STOPPED = 4;
    public static final int E_INVALID = 5;
    public static final int E_ACTION_NOT_SUPPORT = 6;
    public static final int E_ARGUMENT_INVALID = 7;
    public static final int E_NOT_IMPLEMENTED = 8;

    // service
    public static final int E_SERVICE = 2000;
    public static final int E_SERVICE_NOT_BOUND = E_SERVICE + 1;
    public static final int E_SERVICE_VERSION_NOT_SUPPORT = E_SERVICE + 2;

    // subscribe
    public static final int E_SUBSCRIBE = 4000;
    public static final int E_SUBSCRIBE_PROPERTY = (E_SUBSCRIBE + 1);

    // SSDP
    public static final int E_SSDP = 10000;

    // SOAP
    public static final int E_SOAP = 11000;

    // GENA
    public static final int E_GENA = 12000;
    public static final int E_GENA_SUBSCRIBED = (E_GENA + 1);
    public static final int E_GENA_UNSUBSCRIBED = (E_GENA + 2);
    public static final int E_GENA_SUBSCRIBE_FAILED = (E_GENA + 3);

    // Service
    public static final int E_EVENT = 20000;
    public static final int E_EVENT_SUBSCRIBED = E_EVENT + 1;
    public static final int E_EVENT_UNSUBSCRIBED = E_EVENT + 1;
}